[6.x] Avoid calling ->startOfDay() on date range dates#13865
Conversation
|
Hey @duncanmcclean — thanks for this PR. As this issue currently breaks the whole application on our end (all event date ranges are shifted by one day), we’d really appreciate it if this could be merged soon. An alternative solution would be to set date_format: Y-m-d directly on the field, which seems causing the same issue |
Even when this PR is merged, you shouldn't save date range dates in |
|
@MrMooky In v6 everything is stored as a UTC timestamp. If your timezone is Europe/Berlin, you'll see the date stored as |
That's what I did/tried because I read that about the UTC default. The problem is, there are already lots of dates stored and when I change Simply saving the entries won't update them it seems and there are 240+ date entries in the existing system. What would the suggest fix be here? |
|
If you upgraded from v5 you should not change your |
I upgraded from v5 and I haven't changed the timezone setting initially. But I noticed the issue and when changing it to |

This pull request avoids calling
->startOfDay()when augmenting date ranges to avoid situations where the user selects one date but it saves another, which may cause the wrong date to be displayed on the frontend.For example: if you're in Germany and select the 2nd February, it'll save as
2026-02-01 23:00.Related: #13839 (comment)